import { request } from '@/utils/service'
import type * as BatterySwap from '@/api/batteryswap/types/batteryswap'

export function queryElectricCabinet(data: BatterySwap.queryElectricCabinetRequestData) {
  return request<BatterySwap.queryElectricCabinetResponse>({
    url: '/queryElectricCabinet',
    method: 'post',
    data,
  })
}
export function queryBoxDetection(data: BatterySwap.queryBoxDetectionRequestData) {
  return request<BatterySwap.queryBoxDetectionResponse>({
    url: '/queryBoxDetection',
    method: 'post',
    data,
  })
}
export function queryBoxDetailInfo(data: BatterySwap.queryBoxDetailInfoRequestData) {
  return request<BatterySwap.queryBoxDetailInfoResponse>({
    url: '/queryBoxDetailInfo',
    method: 'post',
    data,
  })
}
